import http from "@/utils/http";

export const postLoginWxMin = (data) => {
    return http({
        url: '/login/wxMin',
        method: 'post',
        data,
    })
}
/**
 * 
 * @param {*} phoneNumber 手机号码假数据
 * @returns 
 */
export const postLoginWxminSimple = (phoneNumber) => {
    return http({
        url: '/login/wxMin/simple',
        method: 'post',
        data: { phoneNumber }
    })
}
/**
 * 
 * @returns  获取用户个人信息
 */
export const getMemberProfile = () => {
    return http({
        url: '/member/profile',
    })
}
/**
 * 修改个人信息
 * @param {*} data 个人信息表单
 * @returns 
 */
export const putMemberProfile = (data) => {
    return http({
        url: "/member/profile",
        method: 'put',
        data
    })
}